<?php


class user_ext extends bee\DAO
{
  public $id;
  public $user_id;
  public $home_city;
  public $date_of_birth;
  public $gender;
  public $maiden_name;
  public $fname;
  public $lname;



  public $sector;
  public $region;
  public $login_mode;
  public $confirmation;
  public $default_printer;
  public $second_printer;
  public $city;
  public $address;
  public $default_conn;
  public $second_conn;
  public $report_type;
  public $working_path;

  function __construct($pk = 0)
  { parent::__construct($pk);
  }

  /*
  function INSERT($params = DAO_POST_SELECT)
  { $sqt = "INSERT INTO $this->__table (id, sector, region, login_mode, confirmation, default_printer, second_printer,
  city, address, default_conn, second_conn, report_type, working_path, fname, lname)
  VALUES (:id, :sector, :region, :login_mode, :confirmation, :default_printer, :second_printer,
  :city, :address, :default_conn, :second_conn, :report_type, :working_path, :fname, :lname)";

    $stmt = $this->__conn->prepare($sqt);
    $stmt->bindParam(":id", $this->id, PDO::PARAM_INT); // doraditi bindanje po tipu
    $stmt->bindParam(":sector", $this->sector, PDO::PARAM_INT); // doraditi bindanje po tipu
    $stmt->bindParam(":region", $this->region, PDO::PARAM_INT); // doraditi bindanje po tipu
    $stmt->bindParam(":login_mode", $this->login_mode, PDO::PARAM_INT);
    $stmt->bindParam(":confirmation", $this->confirmation, PDO::PARAM_INT);

    $stmt->bindParam(":city", $this->city, PDO::PARAM_STR);
    $stmt->bindParam(":address", $this->address, PDO::PARAM_STR);

    $stmt->bindParam(":default_printer", $this->default_printer, PDO::PARAM_STR);
    $stmt->bindParam(":second_printer", $this->second_printer, PDO::PARAM_STR);
    $stmt->bindParam(":default_conn", $this->default_conn, PDO::PARAM_STR);
    $stmt->bindParam(":second_conn", $this->second_conn, PDO::PARAM_STR);
    $stmt->bindParam(":report_type", $this->report_type, PDO::PARAM_STR);
    $stmt->bindParam(":working_path", $this->working_path, PDO::PARAM_STR);
    $stmt->bindParam(":fname", $this->fname, PDO::PARAM_STR);
    $stmt->bindParam(":lname", $this->lname, PDO::PARAM_STR);

    if($stmt->execute())
    { if( ($params & DAO_POST_SELECT) == DAO_POST_SELECT)
      {  $this->SELECT($this->id);
      }
      return 1;
    }
    return 0;
  }
  */
}
